convert string letter in python